<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>项目-调整顺序</title>
    <style>
        .box{
            width: 500px;
            height: 500px;
            border: 1px solid black;
            margin: 0 auto;
            display: flex;
        }
        .box div{
            width: 100px;
            height: 100px;
            border: 1px dashed red;
            box-sizing: border-box;
        }
        /*order: 默认0*/
        .div2{
            order: -1;
        }
        .div3{
            order: 1;
        }
        .div4{
            order: 1;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="div1">11111111</div>
        <div class="div2">22222222</div>
        <div class="div3">33333333</div>
        <div class="div4">44444444</div>
        <div class="div5">55555555</div>
    </div>

 
</body>
</html>